﻿using System;
using Godot;

namespace MonsterDiKe.utils;

/**
 * 自定义断言工具类
 */
public class CustomAssert
{

    public static void NotNull(object obj, string errMsg)
    {
        if (obj is null)
        {
            GD.PrintErr(errMsg);
            throw new CustomExamineException(errMsg);
        }
    }

}